
<%@ page contentType="text/html; charset=utf-8" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" 
%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>tree.jsp</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/jsp/common/include.base.jsp" %>
<jsp:include page="/jsp/common/include.commoncode.jsp" flush="false"><jsp:param name="gp" value="1,2"/></jsp:include>
<%@ include file="/jsp/common/include.form.jsp" %>
<%@ include file="/jsp/common/include.dndtree.jsp" %>
<script type="text/javascript">

function doModifyFavorite() {}

$(function() {
	treeObj = new JSDragDropTree();
	treeObj.setTreeId("tree");
	treeObj.setMaximumDepth(10); // 최대 depth 설정
	treeObj.setMessageMaximumDepthReached("Can't insert Level10."); // If you want to show a message when maximum depth is reached, i.e. on drop.
	treeObj.initTree();
});

</script>
</head>
<body>
<div style="padding:20px;">
<ul id="tree" class="dhtmlgoodies_tree">
	<li id="1" noDrag="false" noSiblings="true" noDelete="true" noRename="true" noChildren="false"><a href="#">node1</a>
		<ul>
			<li id="11" menu_type="N" menu_level="2" menu_name="node11"><a href="#">node11</a></li>
			<li id="12" menu_type="N" menu_level="2" menu_name="node11"><a href="#">node12</a></li>
			<li id="13" menu_type="N" menu_level="2" menu_name="node11"><a href="#">node13</a></li>
			<li id="14" menu_type="N" menu_level="2" menu_name="node11"><a href="#">node14</a></li>
			<li id="15" menu_type="N" menu_level="2" menu_name="node11"><a href="#">node15</a></li>
		</ul>
	</li>
</ul>
</div>
</body>
</html>